package org.duang.http.base;

import java.util.HashMap;
import java.util.Map;

public class HttpRes {

	private int statusCode;
	private String result;
	private Exception exception;
	private Map<String, String> headers = new HashMap<String, String>();

	public HttpRes() {
		super();
	}

	public HttpRes(int statusCode, String result, Exception exception, Map<String, String> headers) {
		super();
		this.statusCode = statusCode;
		this.result = result;
		this.exception = exception;
		this.headers = headers;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}

	public Map<String, String> getHeaders() {
		return headers;
	}

	public void setHeaders(Map<String, String> headers) {
		this.headers = headers;
	}

}
